import { axios } from '@/utils/request'

export function selectPage(parameter) {
  return axios({
    url: '/pc/company/selectPage/' + parameter.pageNum + "/" + parameter.pageSize,
    method: 'post',
    data: parameter
  })
}

export function save(parameter) {
  return axios({
    url: '/pc/company/save',
    method: 'post',
    data: parameter
  })
}

export function del(parameter) {
  return axios({
    url: '/pc/company/delete/' + parameter,
    method: 'get'
  })
}

export function selectAllCompany() {
  return axios({
    url: '/pc/company/selectAll',
    method: 'get'
  })
}

export function deletePic(parameter) {
  return axios({
    url: '/pc/common/deletePic/' + parameter,
    method: 'get'
  })
}

export function selectByMasterId(parameter) {
  return axios({
    url: '/pc/company/selectByMasterId/' + parameter,
    method: 'get'
  })
}

export function selectByBackId(parameter) {
  return axios({
    url: '/pc/company/selectByBackId/' + parameter,
    method: 'get'
  })
}

export function deleteBatch(parameter) {
  return axios({
    url: '/pc/company/deleteBatch',
    method: 'post',
    data:{
      'companys':parameter
    }
  })
}

